import Mock from 'mockjs'

export default [
  {
    url: '/sys/user/info',
    method: 'get',
    response: {
      code: 0,
      message: 'success',
      user: {
        id: 1,
        username: 'admin',
        headimgurl: 'http://cloud.zhgcwl.cn/test/20200912/b21b52ef825f49279a5eb4e55215ea7e.jpg',
        password: '123456',
        status: 1,
        roleIdList: [1]
      }
    }
  },
  {
    url: '/login',
    method: 'post',
    response: {
      code: 0,
      message: 'success',
      token: Mock.Random.string('abcdefghijklmnopqrstuvwxyz0123456789', 32)
    }
  },
  {
    url: '/sys/user/list',
    method: 'get',
    response: {
      code: 0,
      message: 'success',
      page: {
        currPage: 1,
        pageSize: 10,
        totalCount: 400,
        totalPage: 40,
        list: [{"id":1,"username":"admin","password":"123456","status":1,"roleIdList":null,"createTime":"2022/11/11 11:11:11","headimgurl":"http://cloud.zhgcwl.cn/test/20200912/b21b52ef825f49279a5eb4e55215ea7e.jpg"}]
      }
    }
  },
  {
    url: '/sys/user/delete',
    method: 'post',
    response: {
      code: 0,
      message: 'success'
    }
  },
  {
    url: '/sys/role/select',
    method: 'get',
    response: {
      code: 0,
      message: 'suceess',
      list: [{"roleId":1,"roleName":"超级管理员","remark":"","createUserId":1,"menuIdList":null,"createTime":"2021/05/14 17:02:53"}]
    }
  },
  {
    url: '/sys/user/save',
    method: 'post',
    response: {
      code: 0,
      message: 'success'
    }
  },
  {
    url: '/sys/user/update',
    method: 'post',
    response: {
      code: 0,
      message: 'success'
    }
  },
]